﻿<UserControl x:Class="CollegiateAssignment"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             Height="50" MinWidth="250"
             d:DesignHeight="50" d:DesignWidth="350">
    <Grid Background="LightGray" MouseDown="Grid_MouseDown">
        <Grid.ContextMenu>
            <ContextMenu>
                <MenuItem Header="Edit Assignment" IsEnabled="True" Click="EditAssignment_Click"/>
                <MenuItem Header="Delete Assignment" IsEnabled="True" Click="DeleteAssignment_Click" />
            </ContextMenu>
        </Grid.ContextMenu>
        <Border BorderBrush="DarkGray" BorderThickness="1" Height="50">
            <StackPanel Orientation="Horizontal">
                <!-- The "Hack" to have a checkbox with an outline, akin to iProcrastinate -->
                <Button Width="26" Height="26" Margin="4" IsEnabled="True" Name="PriorityIndicator">
                    <CheckBox IsChecked="False" Name="IsCompleted" IsEnabled="True" Click="completedClicked" />
                </Button>
                <!-- To be replaced with a "Star" button -->
                <!-- <Button Content="X" Width="26" Height="26" Margin="2" IsEnabled="False" Name="StarIndicator" /> -->
                <StackPanel Orientation="Vertical">
                    <StackPanel Orientation="Horizontal">
                        <Label Content="Assignment Title" Name="Title" />
                        <Label Content="Assignment Notes" Name="Notes" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <Button Content="Course Name" IsEnabled="True" Name="Course" />
                        <Label Content="Due Date" Name="Due" />
                    </StackPanel>
                </StackPanel>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
